//
//  EzvizRNBridge.m
//  ocdemo
//
//  Created by 杨涛涛5 on 2025/7/3.
//

#import "EzvizRNBridge.h"
#import <React/RCTConvert.h>
#import "ReactController.h"
#import "NavigationHelper.h"

@implementation EzvizRNBridge
RCT_EXPORT_MODULE();
RCT_REMAP_METHOD(getUserInfo,
                 getUserInfoWithResolver:(RCTPromiseResolveBlock)resolve
                  rejecter:(RCTPromiseRejectBlock)reject)
{
    NSDictionary *dict=@{@"name":@"ytt"};
    
    if(dict){
        resolve(dict);
        
    }else{
        NSError *err=[[NSError alloc]init];
        reject(@"1",@"2", err);
    }
}


@end
